package com.yykj.user.center.server.repository;

import com.yykj.user.center.server.model.Doctor;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by chendg on 2021/9/8 0008.
 */
@Repository
public interface DoctorRepository extends JpaRepository<Doctor, String>, JpaSpecificationExecutor<Doctor> {
    List<Doctor> findAllByMobileIn(List<String> mobiles);
    Doctor findFirstByMobile(String mobile);
}
